/*
 * Copyright 2023 devaper
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.github.devaper.pigeon.request

import java.util.function.Supplier


/**
 * 基本的请求信息, 每个MethodHandler都对应一个它, 保存了发送请求需要的基本信息
 *
 * @param requestMethod 请求方法
 * @param requestPathSupplier 请求路径提供方法, 如果有全局之类的基础请求路径, 也会处理完合并到这里
 */
data class RequestBasicInfo(
    val requestMethod: String,
    val requestPathSupplier: Supplier<String>
)
